local ____lualib = require("lualib_bundle")
local __TS__Class = ____lualib.__TS__Class
local __TS__ArraySplice = ____lualib.__TS__ArraySplice
local __TS__SourceMapTraceBack = ____lualib.__TS__SourceMapTraceBack
__TS__SourceMapTraceBack(debug.getinfo(1).short_src, {["7"] = 4,["8"] = 4,["9"] = 4,["11"] = 5,["12"] = 4,["13"] = 11,["14"] = 12,["15"] = 12,["16"] = 11,["17"] = 18,["18"] = 19,["19"] = 18,["20"] = 26,["21"] = 27,["22"] = 28,["23"] = 29,["24"] = 30,["25"] = 31,["26"] = 32,["27"] = 33,["28"] = 34,["30"] = 36,["31"] = 26,["32"] = 42,["33"] = 43,["34"] = 42});
local ____exports = {}
____exports.default = __TS__Class()
local KList = ____exports.default
KList.name = "KList"
function KList.prototype.____constructor(self)
    self.list = {}
end
function KList.prototype.push(self, item)
    local ____self_list_0 = self.list
    ____self_list_0[#____self_list_0 + 1] = item
end
function KList.prototype.pop(self)
    return table.remove(self.list)
end
function KList.prototype.random(self, num)
    local arr = {table.unpack(self.list)}
    local result = {}
    local i = 0
    while i < num do
        local idx = gameapi.get_random_int(0, #arr - 1)
        result[#result + 1] = arr[idx + 1]
        __TS__ArraySplice(arr, idx, 1)
        i = i + 1
    end
    return result
end
function KList.prototype.clear(self)
    self.list = {}
end
return ____exports
